<?php

namespace app\controller;

use support\Request;

// 全局控制器
class IndexController
{
    public function index(Request $request)
    {
        return json([
            "code" => 0,
            "msg" => "ok"
        ]);
    }

    public function view(Request $request)
    {
        return view('index/view', ['name' => 'SKI Admin']);
    }

    public function json(Request $request)
    {
        return json(['code' => 0, 'msg' => 'ok']);
    }

}
